<template>
  <div>
      <!-- 二级路由出口 -->
      <router-view></router-view>
      <!-- 底部栏 -->
    <van-tabbar v-model="active" route placeholder>
      <van-tabbar-item to="/companye" icon="home-o">公司</van-tabbar-item>
      <van-tabbar-item to="/shuati" icon="chat-o">刷题</van-tabbar-item>
      <van-tabbar-item to="/find" icon="tv-o">发现</van-tabbar-item>
      <van-tabbar-item to="/my" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'layout',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style>

</style>
